package com.itheima.修饰符.状态修饰符.myfinal.final修饰局部变量_03;
/*
final可以修饰局部变量
特点
1.如果被修饰的变量是基本数据类型,变量一旦初始化,其值就不在改变
2.如果是引用数据类型,变量初始化后,其地址值不再发生改变
 */


public class Demo {
    public static void main(String[] args) {
//java中自定义常量命名规范,所有字母大写,单词与单词之间用_分开
        final int A = 10;
        final int AGE_NUMBER = 20;

        System.out.println(A);
        System.out.println("AGE_NUMBER = " + AGE_NUMBER);

    final Student STU= new Student();;

    STU.name = "张三";
    STU.name = "李四";
        System.out.println("STU=" + STU);
        System.out.println(STU.name);
    }
}
